﻿/***************************************************************************
//* Foxit Software Inc.
//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
//* and trade secrets of Foxit Software Inc.                                                      *
***************************************************************************/
/**
* 进度条;
*/



define(function (require, exports, module) {

    var       _ProgressLoadingID = "",
                _ProgressBarDiv = "",
                _Language = null;

    exports.Setup = function (getLoadProgress) {
     /*   _Language = FXREADER.AppInstance.GetLanguage();
        _ProgressLoadingID = "_ProgressBarLoading",
        _ProgressBarDiv =
                "<div id='" + _ProgressLoadingID + "' style='z-index:10000;width:250px;position:absolute;bottom:10px;right:25px'>" +
                    _Language.ProgressBar.Loading +
                            "<div class='fwr_progress_bar' style='width:100%' >" +
                                                   "<div class='indicator'></div>" +
                             "</div>" +
                "</div>";
        $("body").append(_ProgressBarDiv);

        var scr = $("#" + _ProgressLoadingID)[0];
        function checkProgress() {
            var p = getLoadProgress() * 100;
            $(".indicator", scr)[0].style.width = p + "%";
            if (p == 100) {
                scr.style.display = "none";
            } else {
                setTimeout(checkProgress, 30);
            }
        }

        checkProgress();*/
    }

    exports.HideProgressBar = function () {
    /*    var scr = $("#" + _ProgressLoadingID)[0];
        $(".indicator", scr)[0].style.width = "100%";
        scr.style.display = "none";*/
    }

});